const userStore = {
  namespaced: true,
  state: () => {
    return {
      userinfo:{},
	  token:""
    }
  },

  mutations: {
    changeUserInfo (state, params) => {
      state.userinfo = params
	  console.log(state.userinfo)
    }
	
	changeToken (state,params) =>{
		state.token = params
		console.log(state.token)
	}
  },
  getters: {
    getToken: (state) => {
      return state.token
    },
	
	getUserInfo:(state)=>{
		return state.userinfo
	}
  },
  actions: {

  }
}

export default userStore